package com.hys.ultrasound.data.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

public class Goods implements Parcelable {

    /**
     * dj_sn : 1
     * djbh : BACHYS000051047
     * xgdjbh : XHBGHYS00108414
     * dddjbh : XHABHYS00017089
     * dddj_sn : 2
     * bmid : BMZHYS00599
     * wldwid : WLDHYS09630
     * wldwname : 河南诚济医药有限公司（直发）
     * ckid : CKZHYS00123
     * spid : SPZHYS00284
     * spmch : 对乙酰氨基酚片
     * shpgg : 0.5gx24片/盒
     * jlgg : 320
     * shl : 6400
     * baozhshl : 20
     * yiwchbaozhshl : 0
     * lingsshl : 0
     * yiwchlingsshl : 0
     * yiwchsl : 0
     * hshj : 2.2
     * cankcbj : 2.2
     * pfpj : 2.2
     * zdshj : 2.2
     * zhcid : EAAHYS000059491
     * is_zx : 否
     * gysid : WLDHYS00004
     * shouhr : 翟艺博
     * spxsbh : 078
     */

    private int position;

    private int dj_sn;
    private String djbh;
    private String xgdjbh;
    private String dddjbh;
    private int dddj_sn;
    private String bmid;
    private String wldwid;
    private String wldwname;
    private String ckid;
    private String spid;
    private String spmch;
    private String shpgg;
    /**
     * 剂量规格
     */
    private int jlgg;
    /**
     * 应扫总数量
     */
    private int shl;
    /**
     * 应扫件数
     */
    private int baozhshl;
    /**
     * 已扫件数
     */
    private int yiwchbaozhshl;
    /**
     * 应扫零散数量
     */
    private int lingsshl;
    /**
     * 已扫零散数量
     */
    private int yiwchlingsshl;
    /**
     * 已扫总数量
     */
    private int yiwchsl;

    private double hshj;
    private double cankcbj;
    private double pfpj;
    private double zdshj;
    private String zhcid;
    private String is_zx;
    private String gysid;
    private String shouhr;
    private String spxsbh;
    /**
     * 操作类型
     * 1 操作件数  2操作零散数 非1和2 都不操作
     */
    private int operationType;

    public int getDj_sn() {
        return dj_sn;
    }

    public void setDj_sn(int dj_sn) {
        this.dj_sn = dj_sn;
    }

    public String getDjbh() {
        return djbh;
    }

    public void setDjbh(String djbh) {
        this.djbh = djbh;
    }

    public String getXgdjbh() {
        return xgdjbh;
    }

    public void setXgdjbh(String xgdjbh) {
        this.xgdjbh = xgdjbh;
    }

    public String getDddjbh() {
        return dddjbh;
    }

    public void setDddjbh(String dddjbh) {
        this.dddjbh = dddjbh;
    }

    public int getDddj_sn() {
        return dddj_sn;
    }

    public void setDddj_sn(int dddj_sn) {
        this.dddj_sn = dddj_sn;
    }

    public String getBmid() {
        return bmid;
    }

    public void setBmid(String bmid) {
        this.bmid = bmid;
    }

    public String getWldwid() {
        return wldwid;
    }

    public void setWldwid(String wldwid) {
        this.wldwid = wldwid;
    }

    public String getWldwname() {
        return wldwname;
    }

    public void setWldwname(String wldwname) {
        this.wldwname = wldwname;
    }

    public String getCkid() {
        return ckid;
    }

    public void setCkid(String ckid) {
        this.ckid = ckid;
    }

    public String getSpid() {
        return spid;
    }

    public void setSpid(String spid) {
        this.spid = spid;
    }

    public String getSpmch() {
        return spmch;
    }

    public void setSpmch(String spmch) {
        this.spmch = spmch;
    }

    public String getShpgg() {
        return shpgg;
    }

    public void setShpgg(String shpgg) {
        this.shpgg = shpgg;
    }

    public int getJlgg() {
        return jlgg;
    }

    public void setJlgg(int jlgg) {
        this.jlgg = jlgg;
    }

    public int getShl() {
        return shl;
    }

    public void setShl(int shl) {
        this.shl = shl;
    }

    public int getBaozhshl() {
        return baozhshl;
    }

    public void setBaozhshl(int baozhshl) {
        this.baozhshl = baozhshl;
    }

    public int getYiwchbaozhshl() {
        return yiwchbaozhshl;
    }

    public void setYiwchbaozhshl(int yiwchbaozhshl) {
        this.yiwchbaozhshl = yiwchbaozhshl;
    }

    public int getLingsshl() {
        return lingsshl;
    }

    public void setLingsshl(int lingsshl) {
        this.lingsshl = lingsshl;
    }

    public int getYiwchlingsshl() {
        return yiwchlingsshl;
    }

    public void setYiwchlingsshl(int yiwchlingsshl) {
        this.yiwchlingsshl = yiwchlingsshl;
    }

    public int getYiwchsl() {
        return yiwchsl;
    }

    public void setYiwchsl(int yiwchsl) {
        this.yiwchsl = yiwchsl;
    }

    public double getHshj() {
        return hshj;
    }

    public void setHshj(double hshj) {
        this.hshj = hshj;
    }

    public double getCankcbj() {
        return cankcbj;
    }

    public void setCankcbj(double cankcbj) {
        this.cankcbj = cankcbj;
    }

    public double getPfpj() {
        return pfpj;
    }

    public void setPfpj(double pfpj) {
        this.pfpj = pfpj;
    }

    public double getZdshj() {
        return zdshj;
    }

    public void setZdshj(double zdshj) {
        this.zdshj = zdshj;
    }

    public String getZhcid() {
        return zhcid;
    }

    public void setZhcid(String zhcid) {
        this.zhcid = zhcid;
    }

    public String getIs_zx() {
        return is_zx;
    }

    public void setIs_zx(String is_zx) {
        this.is_zx = is_zx;
    }

    public String getGysid() {
        return gysid;
    }

    public void setGysid(String gysid) {
        this.gysid = gysid;
    }

    public String getShouhr() {
        return shouhr;
    }

    public void setShouhr(String shouhr) {
        this.shouhr = shouhr;
    }

    public String getSpxsbh() {
        return spxsbh;
    }

    public void setSpxsbh(String spxsbh) {
        this.spxsbh = spxsbh;
    }


    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    /**
     * 获取当前操作类型
     *
     * @return 1 操作件数  2操作零散数 非1和2 都不操作
     */
    public int getOperationType() {
        return operationType;
    }

    public void setOperationType(int operationType) {
        this.operationType = operationType;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.position);
        dest.writeInt(this.dj_sn);
        dest.writeString(this.djbh);
        dest.writeString(this.xgdjbh);
        dest.writeString(this.dddjbh);
        dest.writeInt(this.dddj_sn);
        dest.writeString(this.bmid);
        dest.writeString(this.wldwid);
        dest.writeString(this.wldwname);
        dest.writeString(this.ckid);
        dest.writeString(this.spid);
        dest.writeString(this.spmch);
        dest.writeString(this.shpgg);
        dest.writeInt(this.jlgg);
        dest.writeInt(this.shl);
        dest.writeInt(this.baozhshl);
        dest.writeInt(this.yiwchbaozhshl);
        dest.writeInt(this.lingsshl);
        dest.writeInt(this.yiwchlingsshl);
        dest.writeInt(this.yiwchsl);
        dest.writeDouble(this.hshj);
        dest.writeDouble(this.cankcbj);
        dest.writeDouble(this.pfpj);
        dest.writeDouble(this.zdshj);
        dest.writeString(this.zhcid);
        dest.writeString(this.is_zx);
        dest.writeString(this.gysid);
        dest.writeString(this.shouhr);
        dest.writeString(this.spxsbh);
        dest.writeInt(this.operationType);
    }

    public Goods() {
    }

    protected Goods(Parcel in) {
        this.position = in.readInt();
        this.dj_sn = in.readInt();
        this.djbh = in.readString();
        this.xgdjbh = in.readString();
        this.dddjbh = in.readString();
        this.dddj_sn = in.readInt();
        this.bmid = in.readString();
        this.wldwid = in.readString();
        this.wldwname = in.readString();
        this.ckid = in.readString();
        this.spid = in.readString();
        this.spmch = in.readString();
        this.shpgg = in.readString();
        this.jlgg = in.readInt();
        this.shl = in.readInt();
        this.baozhshl = in.readInt();
        this.yiwchbaozhshl = in.readInt();
        this.lingsshl = in.readInt();
        this.yiwchlingsshl = in.readInt();
        this.yiwchsl = in.readInt();
        this.hshj = in.readDouble();
        this.cankcbj = in.readDouble();
        this.pfpj = in.readDouble();
        this.zdshj = in.readDouble();
        this.zhcid = in.readString();
        this.is_zx = in.readString();
        this.gysid = in.readString();
        this.shouhr = in.readString();
        this.spxsbh = in.readString();
        this.operationType = in.readInt();
    }

    public static final Creator<Goods> CREATOR = new Creator<Goods>() {
        @Override
        public Goods createFromParcel(Parcel source) {
            return new Goods(source);
        }

        @Override
        public Goods[] newArray(int size) {
            return new Goods[size];
        }
    };
}
